package com.ushine.design.design.b_structural_type.d_decorator.b_example;

/**
 * 黑色边框装饰类，充当具体修饰类
 *
 * @author yls
 */
public class BlackBorderDecorator extends ComponentDecorator {

    public BlackBorderDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        super.display();
        setBlackBorder();
    }

    public void setBlackBorder() {
        System.out.println("为构件添加黑色边框。");
    }
}
